using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Export Subnetwork Controllers</para>
    /// <para>Exports subnetwork controllers from a utility network to a .csv file.</para>
    /// <para>将子网控制器从公共设施网络导出到 .csv 文件。</para>
    /// </summary>    
    [DisplayName("Export Subnetwork Controllers")]
    public class ExportSubnetworkControllers : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportSubnetworkControllers()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network from which subnetwork controllers will be exported.</para>
        /// <para>将从中导出子网控制器的公共设施网络。</para>
        /// </param>
        /// <param name="_out_csv_file">
        /// <para>Output File</para>
        /// <para>The location and name of the .csv file to be generated.</para>
        /// <para>要生成的.csv文件的位置和名称。</para>
        /// </param>
        public ExportSubnetworkControllers(object _in_utility_network, object _out_csv_file)
        {
            this._in_utility_network = _in_utility_network;
            this._out_csv_file = _out_csv_file;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Export Subnetwork Controllers";

        public override string CallName => "un.ExportSubnetworkControllers";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _out_csv_file];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network from which subnetwork controllers will be exported.</para>
        /// <para>将从中导出子网控制器的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Output File</para>
        /// <para>The location and name of the .csv file to be generated.</para>
        /// <para>要生成的.csv文件的位置和名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_csv_file { get; set; }


        public ExportSubnetworkControllers SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}